package org.dromara.run.service;

import org.dromara.run.domain.Rule;
import org.dromara.run.domain.vo.RuleVo;
import org.dromara.run.domain.bo.RuleBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.text.ParseException;
import java.util.Collection;
import java.util.List;

/**
 * 跑步规则表Service接口
 *
 * @author chl
 * @date 2024-09-03
 */
public interface IRuleService {

    /**
     * 查询跑步规则表
     */
    RuleVo queryById(Long ruleId);

    /**
     * 查询跑步规则表列表
     */
    TableDataInfo<RuleVo> queryPageList(RuleBo bo, PageQuery pageQuery);

    /**
     * 查询跑步规则表列表
     */
    List<RuleVo> queryList(RuleBo bo);

    /**
     * 新增跑步规则表
     */
    Boolean insertByBo(RuleBo bo) throws ParseException;

    /**
     * 修改跑步规则表
     */
    Boolean updateByBo(RuleBo bo) throws ParseException;

    /**
     * 校验并批量删除跑步规则表信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
